/** 组件类型 */
export type ComponentType = 'lp-input' | 'lp-select' | 'lp-checkbox' | 'lp-image' | 'lp-button'

/** 组件属性 */
export interface ComponentProps {
  [key: string]: any
}

/** 画布组件 */
export interface CanvasComponent {
  id: string
  type: ComponentType
  props: ComponentProps
}

/** 落地页配置 */
export interface LandingPageConfig {
  id?: number
  name: string
  description?: string
  device: 'desktop' | 'mobile'
  components: CanvasComponent[]
  status: number
  url?: string
  createTime?: string
  updateTime?: string
}

/** 落地页查询参数 */
export interface LandingPageQuery {
  pageNo: number
  pageSize: number
  name?: string
  status?: number
  createTime?: string[]
} 